package hw_8_3.thread_demo1;

public class MyThread extends Thread{
    public MyThread(String name){
        super(name);
    }
    @Override
    public void run() {
        Thread thread = Thread.currentThread();
        System.out.println("当前线程的名称：" + thread.getName());
    }
}
